package com.ruoyi.common.core.domain.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * H5登录请求参数
 */
@Data
public class H5LoginBody {

    @NotBlank(message = "用户名不能为空")
    private String username;

    private String password;

    private String phoneNumber;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "验证码UUID不能为空")
    private String uuid;

    // 登录方式：password-密码登录，sms-短信验证码登录
    private String loginType = "password";

    // 短信验证码（当loginType为sms时必填）
    private String smsCode;
}